<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path=request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="广东技术师范学院影视天地"/>
<meta name="description" content="每个广师人一同分享的一片娱乐空间。"/>
<title>电影频道</title>
<link rel="stylesheet" href="<%=path%>/css/common.css" />
<script type="text/javascript" src="<%=path%>/js/common.js"></script>
<style>
<!--

#container {
	position:relative;
	margin:0px auto;
	padding:0px;
	width:900px;
	text-align:left;
	background:#FFFFFF;
}
#header {
	width:900px;
	height:259px;
	margin:0 auto;
	background: url(<%=path%>/images/header.jpg) no-repeat center top;
}
#links {
	width:900px;
	height:46px;
	background:url(<%=path%>/images/linksbg.gif) repeat-x center;
	font-size:20px;
	color:#000033;
	margin-top:-5px;
}
#links ul{
	list-style-type:none;
	padding:0px; margin:0px;
	width:800px;
}
#links ul li{
	text-align:center;
	width:80px;
	display:block;
	float:left;
	margin-top:10px;
}
#content {
	float:left;
	width:900px;
	font-size:12px;
	padding:5px 0px 30px 0px;
	margin:0px;
	background:#FFFFFF;
	overflow:hidden;
}
#content p, #content h4{
	padding-left:20px;
	padding-right:15px;
}
#footer{ position:relative; float:left; margin:0 auto; width:900px; height:50px; line-height:21px; padding:0 0 5px; color:#000; background:url(<%=path%>/images/footerbg.gif) repeat-x; border-top:2px solid #FFFFFF;}
#footer p { font-size:12px; color:#000033;}
#footer a,.footer a:visited {color:#1E50A2;}
#footer img{margin:4px 0 0;} 


.Part{ width:900px; clear:both; margin:5px 0px; overflow:hidden; }
.nTitle .mid_bg{width:900px; position:relative; background:url(<%=path%>/images/mid_bg.gif) repeat-x bottom;}
.nTitle .mid_bg h2{ position:absolute; bottom:4px; left:10px;}
.nTitle .mid_bg span{ position:absolute; bottom:1px; left:580px; width:300px;}
.nContent {width:894px; border:#BBBBBB 3px solid; border-top-width:0px; border-bottom-width:0px;}
.bor03{border:0px; height:auto; margin-bottom:10px;}
.contUl{padding:0px 25px;}
.contUl li{float:left; margin:0px; padding:10px 0 0 0;}
.contUl li img{ border:#eae4d1 3px solid; margin:-4px;}
.contUl li img:hover{border:#FF6600 3px solid; margin:-4px;}
-->
</style>


<script type="text/javascript">
function isDigit(form,s)
{
	var patrn=/^[0-9]{1,5}$/;
	if (patrn.exec(s)){
		form.currentPage.value=form.toPage.value;
		form.submit();
	}else{
		alert("请输入数字！");
	}
}
</script>
</head>


<body>
<div id="container">
	<jsp:include page="header.jsp"></jsp:include>
	<div id="content">
		<div class="Part">
			<div class="nTitle">
				<div class="mid_bg">
			  	<h2>
			  		共${result.page.totalRecords}条记录，分${result.page.totalPage}页，当前第${result.page.currentPage}页
				 	<span><form action="<%=path%>/index/sub.action" method="get" name="sxForm">
				 		<input type="button" value="上一页" onclick="javascrip:currentPage.value='${currentPage-1}';sxForm.submit();" ${result.page.hasPrePage?'':'disabled'}/>
  						<input type="button" value="下一页" onclick="javascrip:currentPage.value='${currentPage+1}';sxForm.submit();" ${result.page.hasNextPage?'':'disabled'}/>
				 		转到:<input type="text" name="toPage" value="" size="5" maxLength="5"/>
				 		<input type="button" size="2" value="跳转" onclick="isDigit(this.form,toPage.value)"/>
				 		<input type="hidden" name="currentPage" value="1"/>
				 		<input type="hidden" name="typeid" value="${typeid}"/>
				 	</form></span>
			 	</h2>
				</div>
			</div>
			<div class="nContent">
				<div class="bor03 cont">
					<ul class="contUl">
						<s:iterator value="result.list" id="album">
							<li>
							  <p><a href="<%=path%>/index/detail.action?album.albumid=${album.albumid}" ><img width="86px" height="123px" src="${album.picturepath}" title="${album.albumname},浏览：${album.click}"/></a></p>
							  <p><a title="${album.albumname},浏览：${album.click}" href="<%=path%>/index/detail.action?album.albumid=${album.albumid}" >${fn:substring(album.albumname,0,7)}</a></p>
							  <p>顶:${album.support},踩:${album.oppose}</p>
							  <p>发布:${fn:substring(album.publishtime,2,10)}</p>
							</li>
						</s:iterator>
					</ul>
				</div>				
			</div>
			<div class="nTitle">
			  	<div class="mid_bg">
			  	<h2>
				  	共${result.page.totalRecords}条记录，分${result.page.totalPage}页，当前第${result.page.currentPage}页
				 	<span><form action="<%=path%>/index/sub.action" method="get" name="sx2Form" class="page">
				 		<input type="button" value="上一页" onclick="javascrip:currentPage.value='${currentPage-1}';sx2Form.submit();" ${result.page.hasPrePage?'':'disabled'}/>
  						<input type="button" value="下一页" onclick="javascrip:currentPage.value='${currentPage+1}';sx2Form.submit();" ${result.page.hasNextPage?'':'disabled'}/>
				 		转到:<input type="text" name="toPage" value="" size="5" maxLength="5"/>
				 		<input type="button" size="2" value="跳转" onclick="onclick=isDigit(this.form,toPage.value)"/>
				 		<input type="hidden" name="currentPage" value="1"/>
				 		<input type="hidden" name="typeid" value="${typeid}"/>
				 	</form></span>
			 	</h2>
				</div>
			</div>
		</div>		
  	</div>
	<div id="footer">
	  <p align="center">| 会员注册 | 关于我们 | 网络中心介绍 | 联络方法 | 给我留言 |</p>
	  <p align="center">版权所有 广东技术师范学院网络中心 (C) 2010 all right.</p>
	</div>
	
</div>
</body>
</html>
